package com.yonyou.pmclouds.reason.rmiitf;

import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.reason.entity.ProblemReasonVO;

import java.util.List;

public interface ProblemReasonMaintain {
    String insert(ProblemReasonVO reasonVO) throws BusinessException;

    String update(ProblemReasonVO reasonVO) throws BusinessException;

    String delete(String reasonid, String changeFlag) throws BusinessException;

    ProblemReasonVO enable(ProblemReasonVO reasonVo) throws BusinessException;

    ProblemReasonVO disable(ProblemReasonVO reasonVo) throws BusinessException;

    int getProblemReasonRefStatus(String pkReason,String tenantid) throws BusinessException;

    boolean referenceCheck(String pkReason) throws BusinessException;

    /**
     * 从excel导入问题原因
     *
     * @param rootVOs  根问题原因列表
     * @param category 问题原因类别
     * @return 插入结果
     * @throws BusinessException
     */
    boolean insertFromExcel(List<ProblemReasonVO> rootVOs, byte category) throws BusinessException;
}
